package com.tarena.lbs.user.dao.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tarena.lbs.user.pojo.po.AdminPO;
import com.tarena.lbs.user.pojo.query.AdminQuery;

import java.util.List;

public interface AdminRepository {

    AdminPO getAdminByPhone(String phone);

    AdminPO adminLogin(String phone);

    AdminPO getAdminById(Integer id);

    List<AdminPO> pagesList(AdminQuery query);

    Long count(QueryWrapper queryWrapper);

    void save(AdminPO adminPO);

    List<AdminPO> list();
}
